// eslint-disable-next-line @typescript-eslint/no-unused-vars
import * as React from 'react';
// import { useNavigate } from 'react-router-dom';

export default function useHistoryBack() {
  // const navigate = useNavigate();
  const back = () => {
    // if (url) {
    //   navigate(url);
    // } else {
    //   navigate(-1);
    // }
  };
  return back;
}
